<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColToMaterialTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('material', function (Blueprint $table) {
            $table->decimal('price')->default(0)->comment('金额')->after('thumb_img_id');
        });

        Schema::table('design_result', function (Blueprint $table) {
            $table->integer('share_img_girl_id')->default(0)->comment('分享图片id')->after('share_img_id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
